@extends('layouts.ajax_master')
@section('app_js')
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script type="text/javascript">
        $('#teamTable').dataTable().fnDestroy();
        initDataTables();
    </script>
@stop
@section('content')
    <table id="example" class="table table-striped responsive-utilities jambo_table">
        <thead>
        <tr class="headings">
            <th>
                <input type="checkbox" class="tableflat">
            </th>
            <th>管理员</th>
            <th>姓名</th>
            <th>角色</th>
            <th>联系方式</th>
            <th>状态</th>
            <th>上次登录时间</th>
            <th>上次登录IP</th>
            <th class=" no-link last"><span class="nobr">操作</span>
            </th>
        </tr>
        </thead>

        <tbody>
        @foreach($info as $k => $inf)
            <tr  pointer img-box">
            <td class="a-center ">
                <input type="checkbox" class="tableflat">
            </td>
            <td>{{ $inf->name }}</td>
            <td>{{ $inf->real_name }}</td>
            {{--<td>{{ $admin->avatar }}</td>--}}
            <td>{{ $inf->role_id }}</td>
            <td>{{ $inf->mobile }}</td>
            <td>{{ $inf->status }}</td>
            <td>{{ $inf->last_login_time }}</td>
            <td>{{ $inf->last_login_ip }}</td>
            <td class=" last"><a href="/edit_admin?id={{ $inf->id }}">编辑</a> |
                <a href="javascript:;" class="delete"  data-id="{{$inf->id}}">删除</a> </td>
            </tr>
        @endforeach
        </tbody>

    </table>